package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ???????
 *
 * @author zhuanning
 * @email zhuanning@gmail.com
 * @date 2020-05-22 23:55:35
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenueByIds(List<Long> asList);

    /***
     * @Description: 根据子分类id找到完整分类路径
     * @author zhuanning
     * @date  8:37 下午
     * @param catelogId
     * @return
     */
    List<Long> findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

}

